package com.freemyleft.left.zapp.delegates.Bottom;

import java.util.LinkedHashMap;

/**
 * Created by FreeMyleft on 2017/12/24.
 */

public final class ItemBuilder {

    private final LinkedHashMap<BottomTabBean,BottomItemDelegate>ITEMS=new LinkedHashMap<>();
    // TODO: 2017/12/24 简单工厂模式 
    static ItemBuilder buider (){
        return  new ItemBuilder();
    }
    public final ItemBuilder addItem(BottomTabBean bean,BottomItemDelegate delegate){
        ITEMS.put(bean,delegate);
        return this;

    }
    public final ItemBuilder addItems(LinkedHashMap<BottomTabBean ,BottomItemDelegate> Items){
        ITEMS.putAll(Items);
        return this;

    }
    public final LinkedHashMap<BottomTabBean,BottomItemDelegate> builder(){
        return ITEMS;
    }
}
